﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Jxym.DBUtility;
using Jxym.wlkc2011.Module.CMS.MODEL;

namespace Jxym.wlkc2011
{
    public partial class xgzy : System.Web.UI.UserControl
    {
        private string _img = "";
        public string MyImg
        {
            get { return _img; }
            set { _img = value; }
        }
        private string _height = "";
        private int _l = 100;
        private string _href = "#";
        private string _title = "未命名";
        private int _myContentClassID = 1;
        private int _topN = 10;
        public string MyHeight
        {
            get { return _height; }
            set { _height = value; }
        }
        public string MyTitle
        {
            get { return _title; }
            set { _title = value; }
        }
        public string MyHref
        {
            get { return _href; }
            set { _href = value; }
        }
        public int MyContentClassID
        {
            get { return _myContentClassID; }
            set { _myContentClassID = value; }
        }
        public int TopN
        {
            get { return _topN; }
            set { _topN = value; }
        }
        public int L
        {
            get { return _l; }
            set { _l = value; }
        }
        protected void Page_Load(object sender, EventArgs e)
        {

            int _height2 = Convert.ToInt32(_height);
            if (Request.Params["siteName"] != null)
            {
                _siteName = Request.Params["siteName"];
            }

            MsSqlDal<Cms_Content> cct = new MsSqlDal<Cms_Content>();
            IList<Cms_Content> list = cct.GetList("ContentClassID=" + _myContentClassID, null, "", 0);
            if (list != null)
            {
                Repeater1.Visible = true;
                Repeater1.DataSource = list;
                Repeater1.DataBind();
            }
        }

        public string _siteName { get; set; }
    }
}